﻿using CSharpDesign.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CSharpDesign.BLL
{
    public class AddNewsService
    {
        SqlHelper data = new SqlHelper();
        public string AddNews(string name, string content, string typeid, string TypeName)
        {
            string sql = "insert into News(name,content,typeid,TypeName) values('" + name + "','" + content + "','" + typeid + "','" + TypeName + "')";
            data.RunSql(sql);
            return typeid;
        }
    }
}